package com.hoshiicloud.stock.param;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 仓库单分页查询参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/18 09:49
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class WvoucherhPageParam {

    /**
     *当前页 默认为1
     */
    @ApiModelProperty(name = "pageIndex", value = "当前页码", dataType = "java.lang.Long", example = "1", hidden = true)
    @TableField(exist = false)
    private Long pageIndex = 1L;

    /**
     *每页数量 默认为10
     */
    @ApiModelProperty(name = "pageSize", value = "每页大小", dataType = "java.lang.Long", example = "10", hidden = true)
    @TableField(exist = false)
    private Long pageSize = 10L;

    // 单据编号
    @NotNull(message = "单据编号不能为空")
    @ApiModelProperty(name = "billno", value = "单据编号", required = true, dataType = "java.lang.String", example = "B0001")
    private String billno;

    // 仓库类别  1-租户 2-租合供应商 3-平台 4-平台供应商5-店铺 6-店铺供应商
    @NotNull(message = "仓库类别不能为空")
    @ApiModelProperty(name = "type", value = "仓库类别", required = true, dataType = "java.lang.Integer", example = "1")
    private Integer type;

    // 部门代码
    @NotNull(message = "部门代码不能为空")
    @ApiModelProperty(name = "deptcode", value = "部门代码", required = true, dataType = "java.lang.String", example = "SD")
    private String deptcode;

    // 单据类型
    @NotNull(message = "单据类型不能为空")
    @ApiModelProperty(name = "vouchertype", value = "单据类型", required = true, dataType = "java.lang.String", example = "SOI")
    private String vouchertype;

    // 地址
    @NotNull(message = "地址不能为空")
    @ApiModelProperty(name = "address", value = "地址", required = true, dataType = "java.lang.String", example = "福建省福州市马尾区3楼")
    private String address;

    // 来源单据号
    @NotNull(message = "来源单据号不能为空")
    @ApiModelProperty(name = "sourcebill", value = "来源单据号", required = true, dataType = "java.lang.String", example = "B0001")
    private String sourcebill;

    // 状态 0-未过账 1-已过账
    @NotNull(message = "状态不能为空")
    @ApiModelProperty(name = "status", value = "状态", required = true, dataType = "java.lang.Integer", example = "1")
    private Integer status;

}  